Mercurial > hg > horiscopes
diff V4/runme.py @ 23:11d4e438045e
make version 5
author | DaveM |
---|---|
date | Mon, 09 Apr 2018 15:07:21 +0100 |
parents | a5b8e2b91d8f |
children |
line wrap: on
line diff
--- a/V4/runme.py Thu Mar 08 20:36:44 2018 +0000 +++ b/V4/runme.py Mon Apr 09 15:07:21 2018 +0100 @@ -84,7 +84,7 @@ # time.sleep(5) # return r -def loadPickUpdate(filename): +# def loadPickUpdate(filename): def loadPick(filename): with open(filename, 'rb') as handle: @@ -146,10 +146,12 @@ parseHoriscope(people,parseSaveFile) else: people = loadPick(parseSaveFile) - if not os.path.exists('fullResults.pick'): + # if not os.path.exists('fullResults.pick'): + if os.path.exists('fullResults.pick'): comp = syn.compatibility() comp.parseCompatRules('compatibilityRules.csv') for person in people: + print person.id person.score = None if person.issue is None: person.score = comp.calcCompatibility(person.horiscope)