Compare commits

..

No commits in common. "8025c31339e0097ae20cd17cbb3c7b26ff1f634d" and "da02aca7e4462e1387ef0bdf88fe470694601c72" have entirely different histories.

2 changed files with 1 additions and 9 deletions

View File

@ -1,5 +1,3 @@
import time
from cpl_core.database import DatabaseSettings
from cpl_core.database.context import DatabaseContext
@ -33,9 +31,4 @@ class DBContext(DatabaseContext):
return super(DBContext, self).select(statement)
except Exception as e:
self._logger.error(__name__, f"Database error caused by {statement}", e)
try:
time.sleep(0.5)
return self.select(statement)
except Exception as e:
pass
return []

View File

@ -39,7 +39,6 @@ class UserMutation(QueryABC):
if "levelId" in input:
level = self._levels.get_level_by_id(input["levelId"])
if user.level.id != level.id:
user.xp = level.min_xp
else:
user.xp = input["xp"] if "xp" in input else user.xp