mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 09:17:16 +00:00
bug fix
This commit is contained in:
@@ -180,12 +180,15 @@ def load_people_expos():
|
||||
|
||||
def ensure_users_are_persons():
|
||||
# Just ensure this is up to date.
|
||||
print(f"# ensure_users_are_persons()")
|
||||
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
|
||||
p.save()
|
||||
print(f" - {p.user} {u=}")
|
||||
|
||||
def who_is_this(year, possibleid):
|
||||
expo = Expedition.objects.filter(year=year)
|
||||
|
||||
Reference in New Issue
Block a user