drop txn wrapper on raw sql

This commit is contained in:
2022-06-24 20:15:23 -05:00
parent 0427dbe6bd
commit dd2ffced4c

View File

@@ -240,7 +240,6 @@ class WordleDb:
score.save()
def get_users_without_score(self, round_no, hole_no, tweetable=True):
with db.atomic() as txn:
hole = self.get_or_create_hole(round_no, hole_no)
# Find users who *have* played in this round,
# but have no score on the current hole
@@ -260,5 +259,5 @@ class WordleDb:
# Restrict to users who post scores on twitter
query_str += " AND u.check_twitter = true"
res = txn.execute_sql(query_str)
res = db.execute_sql(query_str)
return [r[0] for r in res]