mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 14:07:07 +00:00
bug fix
This commit is contained in:
@@ -180,12 +180,15 @@ def load_people_expos():
|
|||||||
|
|
||||||
def ensure_users_are_persons():
|
def ensure_users_are_persons():
|
||||||
# Just ensure this is up to date.
|
# Just ensure this is up to date.
|
||||||
|
print(f"# ensure_users_are_persons()")
|
||||||
users = User.objects.all()
|
users = User.objects.all()
|
||||||
for u in users:
|
for u in users:
|
||||||
ps = Person.objects.filter(slug=u.username)
|
ps = Person.objects.filter(slug=u.username)
|
||||||
if len(ps) >= 1:
|
if len(ps) >= 1:
|
||||||
p = ps[0]
|
p = ps[0]
|
||||||
p.user = u
|
p.user = u
|
||||||
|
p.save()
|
||||||
|
print(f" - {p.user} {u=}")
|
||||||
|
|
||||||
def who_is_this(year, possibleid):
|
def who_is_this(year, possibleid):
|
||||||
expo = Expedition.objects.filter(year=year)
|
expo = Expedition.objects.filter(year=year)
|
||||||
|
|||||||
Reference in New Issue
Block a user