Skip to content

Commit

Permalink
deal with possibly blank entries for certain problems
Browse files Browse the repository at this point in the history
(in the end only athenak will survive here)
  • Loading branch information
teuben committed Aug 22, 2023
1 parent 5cbcbc4 commit f511aef
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pyqt_menu_minik.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@
with open('athena_problems.json') as problems_json:
problems = load(problems_json)

athena_problems = list(problems['athena'])
athenac_problems = list(problems['athenac'])
athenak_problems = list(problems['athenak'])

athena_problems = list([])
athenac_problems = list([])
athenak_problems = list([])
if 'athena' in problems:
athena_problems = list(problems['athena'])
if 'athenac' in problems:
athenac_problems = list(problems['athenac'])
if 'athenak' in problems:
athenak_problems = list(problems['athenak'])

class MainWindow(qw.QMainWindow):
def __init__(self):
Expand Down

0 comments on commit f511aef

Please sign in to comment.