Format code with black. Add makefile to run fmt/tests
This commit is contained in:
parent
d00bce9288
commit
c2c7fa311a
299 changed files with 19037 additions and 11611 deletions
|
|
@ -6,20 +6,20 @@ from django.db import models, migrations
|
|||
|
||||
def remove_manage_scripts(apps, schema_editor):
|
||||
ScriptDB = apps.get_model("scripts", "ScriptDB")
|
||||
for script in ScriptDB.objects.filter(db_typeclass_path__in=('src.scripts.scripts.CheckSessions',
|
||||
'src.scripts.scripts.ValidateScripts',
|
||||
'src.scripts.scripts.ValidateChannelHandler',
|
||||
'src.scripts.scripts.ValidateIdmapperCache',
|
||||
'src.utils.gametime.GameTime')):
|
||||
for script in ScriptDB.objects.filter(
|
||||
db_typeclass_path__in=(
|
||||
"src.scripts.scripts.CheckSessions",
|
||||
"src.scripts.scripts.ValidateScripts",
|
||||
"src.scripts.scripts.ValidateChannelHandler",
|
||||
"src.scripts.scripts.ValidateIdmapperCache",
|
||||
"src.utils.gametime.GameTime",
|
||||
)
|
||||
):
|
||||
script.delete()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('scripts', '0005_auto_20150306_1441'),
|
||||
]
|
||||
dependencies = [("scripts", "0005_auto_20150306_1441")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(remove_manage_scripts),
|
||||
]
|
||||
operations = [migrations.RunPython(remove_manage_scripts)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue