mirror of
https://github.com/norohind/ED-livery-tracker-advanced.git
synced 2026-10-22 21:02:08 +03:00
insert_livery_timestamp: return action_id
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -21,7 +21,7 @@ class AbstractModel(abc.ABC):
|
|||||||
raise NotImplemented
|
raise NotImplemented
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def insert_livery_timestamp(self, livery_list: list) -> None:
|
def insert_livery_timestamp(self, livery_list: list) -> int:
|
||||||
raise NotImplemented
|
raise NotImplemented
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class PostgresModel(AbstractModel):
|
|||||||
livery_list)
|
livery_list)
|
||||||
|
|
||||||
@errors_catcher
|
@errors_catcher
|
||||||
def insert_livery_timestamp(self, livery_list: list) -> None:
|
def insert_livery_timestamp(self, livery_list: list) -> int:
|
||||||
"""
|
"""
|
||||||
Takes livery content with timestamps as list insert to DB. Helpful for historical data
|
Takes livery content with timestamps as list insert to DB. Helpful for historical data
|
||||||
|
|
||||||
@@ -122,6 +122,8 @@ class PostgresModel(AbstractModel):
|
|||||||
postgres_sql_requests.insert_livery_timestamp,
|
postgres_sql_requests.insert_livery_timestamp,
|
||||||
livery_list)
|
livery_list)
|
||||||
|
|
||||||
|
return action_id
|
||||||
|
|
||||||
@errors_catcher
|
@errors_catcher
|
||||||
def get_diff_action_id(self, action_id: int) -> list:
|
def get_diff_action_id(self, action_id: int) -> list:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in new issue
Block a user