2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 09:17:16 +00:00

whack a mole

This commit is contained in:
2025-01-24 02:33:42 +00:00
parent 61722fd6c0
commit fedcc6d201
5 changed files with 31 additions and 7 deletions

View File

@@ -175,8 +175,18 @@ def load_people_expos():
# otherAttribs = {"is_guest": (personline[header["Guest"]] == "1")}
pe = PersonExpedition.objects.create(**coUniqueAttribs)
print("", flush=True)
ensure_users_are_persons()
def ensure_users_are_persons():
# Just ensure this is up to date.
users = User.objects.all()
for u in users:
ps = Person.objects.filter(slug=u.username)
if len(ps) >= 1:
p = ps[0]
p.user = u
def who_is_this(year, possibleid):
expo = Expedition.objects.filter(year=year)
personexpedition = GetPersonExpeditionNameLookup(expo)[possibleid.lower()]