summaryrefslogtreecommitdiff
path: root/ffxiv_test.py
blob: 87e7433485adc0ad4761f7bff16357c3651dcdf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import asyncio
from datetime import timedelta

import psycopg2
import time
from ffxiv.ffxiv_core import FFXIVCharacter

character = FFXIVCharacter(character_id=16948279)  # Hoptimus
# character = FFXIVCharacter(character_id=31356200)  # Leonieros
# character = FFXIVCharacter(character_id=24587891)  # Lille
# character = FFXIVCharacter(character_id=36388961)  # Cleftin
# character = FFXIVCharacter(character_id=42094919)  # Bekuh (Maddie)

asyncio.run(character.obtain_character_data())
asyncio.run(character.build_character_view())

# epoch = 1654714864
# delta = timedelta(hours=23).seconds
# ctime = int(time.time())
# print((ctime - epoch) > delta)
# print(f"epoch: {epoch}")
# print(f"delta: {delta}")
# print(f"ctime: {ctime}")
# print(f"ctime - epoch: {(ctime - epoch)}")
# print(f"ctime - epoch: {(ctime - epoch) > delta}")