forked from MarseyWorld/MarseyWorld
fix 500 error
parent
a0cdbbc2f9
commit
3e7aa7297e
|
@ -1435,7 +1435,7 @@ class User(Base):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
uid = redis_instance.get(f'switched-{self.id}')
|
uid = redis_instance.get(f'switched-{self.id}')
|
||||||
if uid: return g.db.get(User, uid)
|
if uid: return g.db.get(User, int(uid))
|
||||||
|
|
||||||
three_days = time.time() - 259200
|
three_days = time.time() - 259200
|
||||||
uid = g.db.query(User.id).filter(
|
uid = g.db.query(User.id).filter(
|
||||||
|
|
Loading…
Reference in New Issue