(id, lat, lng, itime)
| 13 | |
| 14 | |
| 15 | def printPokemon(id, lat, lng, itime): |
| 16 | if args.display_in_console: |
| 17 | pokemon_name = get_pokemon_name(id).lower() |
| 18 | pokemon_rarity = get_pokemon_rarity(id).lower() |
| 19 | pokemon_id = str(id) |
| 20 | doPrint = True |
| 21 | # if args.ignore: |
| 22 | # if pokemon_name in IGNORE or pokemon_id in IGNORE: |
| 23 | # doPrint = False |
| 24 | # elif args.only: |
| 25 | # if pokemon_name not in ONLY and pokemon_id not in ONLY: |
| 26 | # doPrint = False |
| 27 | if doPrint: |
| 28 | timeLeft = itime - datetime.utcnow() |
| 29 | print("======================================\n Name: %s\n Rarity: %s\n Coord: (%f,%f)\n ID: %s \n Remaining Time: %s\n======================================" % ( |
| 30 | pokemon_name.encode('utf-8'), pokemon_rarity.encode('utf-8'), lat, lng, pokemon_id, str(timeLeft))) |
no test coverage detected