This website works better with JavaScript.
Home
Explore
Sign In
miteruzo
/
nizika_nico
Watch
1
Star
0
Fork
0
Code
Issues
4
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
#22
feature/022
みてるぞ
1 week ago
parent
cb72b8dd99
commit
2b706f1247
1 changed files
with
17 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+17
-0
tracked_videos/put_bulk_upsert.py
+ 17
- 0
tracked_videos/put_bulk_upsert.py
View File
@@ -0,0 +1,17 @@
from db.config import DB
from db.models import TrackedVideo
DB
def main (
video_codes: list[str],
) -> None:
for code in video_codes:
tv = TrackedVideo ()
tv.code = code
tv.upsert ()
if __name__ == '__main__':
main (sys.argv[1:])
Write
Preview
Loading…
Cancel
Save