From cb0ff3b2f043320e57bf4c0f454746c11c9a41da Mon Sep 17 00:00:00 2001 From: Khiem Ton Date: Mon, 27 Mar 2023 15:11:10 +0700 Subject: [PATCH] refactor: objects -> models --- ispoof/{objects => models}/__init__.py | 0 ispoof/{objects => models}/player.py | 0 ispoof/{objects => models}/pokemon.py | 1 + ispoof/{objects => models}/raid.py | 1 + 4 files changed, 2 insertions(+) rename ispoof/{objects => models}/__init__.py (100%) rename ispoof/{objects => models}/player.py (100%) rename ispoof/{objects => models}/pokemon.py (98%) rename ispoof/{objects => models}/raid.py (97%) diff --git a/ispoof/objects/__init__.py b/ispoof/models/__init__.py similarity index 100% rename from ispoof/objects/__init__.py rename to ispoof/models/__init__.py diff --git a/ispoof/objects/player.py b/ispoof/models/player.py similarity index 100% rename from ispoof/objects/player.py rename to ispoof/models/player.py diff --git a/ispoof/objects/pokemon.py b/ispoof/models/pokemon.py similarity index 98% rename from ispoof/objects/pokemon.py rename to ispoof/models/pokemon.py index e92c0f3..069c7e2 100644 --- a/ispoof/objects/pokemon.py +++ b/ispoof/models/pokemon.py @@ -28,6 +28,7 @@ class Pokemon(Base): cp, level, attack, defense, hp, iv, shiny, start_time, end_time, country): + super().__init__() self.name = name self.number = number self.location = location diff --git a/ispoof/objects/raid.py b/ispoof/models/raid.py similarity index 97% rename from ispoof/objects/raid.py rename to ispoof/models/raid.py index 64c078e..2b65401 100644 --- a/ispoof/objects/raid.py +++ b/ispoof/models/raid.py @@ -18,6 +18,7 @@ class Raid(Base): PrimaryKeyConstraint(name, location, start_time, end_time, name="raid_pk", sqlite_on_conflict='IGNORE') def __init__(self, name, number, level, location, start_time, end_time, country): + super().__init__() self.name = name self.number = number self.level = level