-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from PyAr/automatic_wizards_agenda
Wizards agenda
- Loading branch information
Showing
14 changed files
with
850 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ on: | |
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
TOKEN: foo | ||
|
||
jobs: | ||
build: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# https://docs.peewee-orm.com/en/latest/peewee/playhouse.html#schema-migrations | ||
|
||
from datetime import datetime, timedelta | ||
from playhouse.migrate import * | ||
import peewee as pw | ||
|
||
from pycamp_bot.models import Pycampista, Slot, Pycamp | ||
|
||
|
||
my_db = pw.SqliteDatabase('pycamp_projects.db') | ||
migrator = SqliteMigrator(my_db) | ||
|
||
from pycamp_bot.models import Pycamp | ||
|
||
|
||
migrate( | ||
migrator.add_column( # wizard_slot_duration = pw.IntegerField(default=60, null=False) | ||
Pycamp._meta.table_name, | ||
'wizard_slot_duration', | ||
Pycamp.wizard_slot_duration | ||
), | ||
migrator.add_column( # current_wizard = pw.ForeignKeyField(Pycampista) | ||
Slot._meta.table_name, | ||
'current_wizard_id', | ||
Slot.current_wizard | ||
), | ||
) | ||
|
||
p = Pycamp.get() | ||
p.end = datetime(2024,6,23,23,59,59,99) | ||
p.end = datetime(2024,6,23,23,59,59,999999) | ||
p.save() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.