]> jfr.im git - erebus.git/commitdiff
trivia add todo
authorzonidjan <redacted>
Fri, 23 Jul 2021 07:13:12 +0000 (02:13 -0500)
committerzonidjan <redacted>
Fri, 23 Jul 2021 07:13:12 +0000 (02:13 -0500)
modules/trivia.py

index f36774926c6a7f0e766fc3fd1874ccaf59462f31..b5191d3eec5e502c08c239762d335e1bff2f2a54 100644 (file)
@@ -137,6 +137,7 @@ class TriviaState(object):
                        if len(dbjson) > 0:
                                os.rename(self.questionfile, self.questionfile+".auto.bak")
                                try:
+                                       # TODO replace both of these with tempfile.NamedTemporaryFile(delete=False, dir=os.path.dirname(self.questionfile), prefix='trivia') & f.name :
                                        if sys.version_info.major < 3:
                                                tmpfn = os.tempnam('.', 'trivia')
                                                f = open(tmpfn, "w")