mirror of
https://github.com/Xevion/recommit.git
synced 2025-12-06 01:16:00 -06:00
Add table construction, adding commits, and commit checking queries. Modify Commit model properties & table.
This commit is contained in:
11
models.py
11
models.py
@@ -5,13 +5,12 @@ from datetime import datetime
|
||||
@dataclass
|
||||
class Commit:
|
||||
"""Describes a specific commit event in time."""
|
||||
|
||||
# A unique identifier for this commit. Not necessarily the commit hash.
|
||||
id: int
|
||||
# A name, description etc. for this commit. Not required to be based on the original comit message.
|
||||
name: str
|
||||
# A timestamp
|
||||
id: str
|
||||
project_id: int
|
||||
source: str
|
||||
iteration: int
|
||||
timestamp: datetime
|
||||
seen_timestamp: datetime
|
||||
|
||||
def __str__(self) -> str:
|
||||
return '{name}({params})'.format(
|
||||
|
||||
Reference in New Issue
Block a user