(missingSet, fileName)
| 243 | releaseFile.write("[/spoiler]\n\n") |
| 244 | |
| 245 | def printDistinctOracle(missingSet, fileName): |
| 246 | filePath = os.path.join(toolsDir, "EditionTrackingResults", fileName) |
| 247 | missing = list(missingSet) |
| 248 | missing.sort() |
| 249 | with open(filePath, "w") as outfile: |
| 250 | for s in missing: |
| 251 | if s: |
| 252 | try: |
| 253 | oracle = normalizeOracle(mtgOracleCards.get(s).get('text')) |
| 254 | outfile.write("%s\n%s\n\n" % (s, oracle)) |
| 255 | except: |
| 256 | outfile.write("%s\n\n" % (s)) |
| 257 | print("Failed to grab oracle for ", s) |
| 258 | outfile.write("\n") |
| 259 | |
| 260 | |
| 261 | if __name__ == '__main__': |
no test coverage detected