File tree Expand file tree Collapse file tree 5 files changed +38
-0
lines changed
github_stats_pages/models Expand file tree Collapse file tree 5 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ from .clone import Clone # noqa: F401
2+ from .referring import Referring # noqa: F401
3+ from .traffic import Traffic # noqa: F401
Original file line number Diff line number Diff line change 1+ from typing import Optional
2+
3+ from sqlmodel import SQLModel , Field
4+
5+
6+ class Clone (SQLModel , table = True ):
7+ id : Optional [int ] = Field (default = None , primary_key = True )
8+ repository_name : str
9+ date : str
10+ clones : int
11+ unique_clones : int
Original file line number Diff line number Diff line change 1+ from typing import Optional
2+
3+ from sqlmodel import SQLModel , Field
4+
5+
6+ class Referring (SQLModel , table = True ):
7+ id : Optional [int ] = Field (default = None , primary_key = True )
8+ repository_name : str
9+ site : str
10+ date : str
11+ views : int
12+ unique_visitors : int
Original file line number Diff line number Diff line change 1+ from typing import Optional
2+
3+ from sqlmodel import SQLModel , Field
4+
5+
6+ class Traffic (SQLModel , table = True ):
7+ id : Optional [int ] = Field (default = None , primary_key = True )
8+ repository_name : str
9+ date : str
10+ views : int
11+ unique_visitors : int
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ install_requires =
3737 PyGithub == 1.55
3838 tabulate == 0.8.7
3939 rich >= 12.4.1, <13.0.0
40+ sqlmodel >= 0.0.6, < 1.0.0
4041scripts =
4142 scripts/get_repo_list
4243 scripts/gts_run_all_repos
You can’t perform that action at this time.
0 commit comments