chore: ruff format + fix
This commit is contained in:
parent
11229a3906
commit
eb1eed852b
@ -2,5 +2,5 @@ from django.apps import AppConfig
|
||||
|
||||
|
||||
class AnimationsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'animations'
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "animations"
|
||||
|
||||
@ -4,23 +4,29 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
dependencies = []
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='PuzzlePointsFactor',
|
||||
name="PuzzlePointsFactor",
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('cost', models.IntegerField()),
|
||||
('cycles', models.IntegerField()),
|
||||
('area', models.IntegerField()),
|
||||
('special_notes', models.TextField(blank=True)),
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("created_at", models.DateTimeField(auto_now_add=True)),
|
||||
("updated_at", models.DateTimeField(auto_now=True)),
|
||||
("cost", models.IntegerField()),
|
||||
("cycles", models.IntegerField()),
|
||||
("area", models.IntegerField()),
|
||||
("special_notes", models.TextField(blank=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
@ -4,19 +4,26 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('animations', '0001_initial'),
|
||||
("animations", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='PuzzlePointsValue',
|
||||
name="PuzzlePointsValue",
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('points', models.JSONField(default=[])),
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("created_at", models.DateTimeField(auto_now_add=True)),
|
||||
("updated_at", models.DateTimeField(auto_now=True)),
|
||||
("points", models.JSONField(default=[])),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
# Generated by Django 5.2.7 on 2026-05-05 13:38
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("animations", "0002_puzzlepointsvalue"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="puzzlepointsvalue",
|
||||
name="points",
|
||||
field=models.JSONField(default=list),
|
||||
),
|
||||
]
|
||||
@ -21,4 +21,4 @@ class PuzzlePointsValue(models.Model):
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
points = models.JSONField(default=[])
|
||||
points = models.JSONField(default=list)
|
||||
|
||||
@ -1,3 +1 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
|
||||
@ -1,3 +1 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
|
||||
@ -27,7 +27,7 @@ class Command(BaseCommand):
|
||||
api_key = SteamAPIKey.objects.filter(is_active=True).first()
|
||||
|
||||
if not api_key:
|
||||
self.stderr.write(f"No API key defined! Aborting...")
|
||||
self.stderr.write("No API key defined! Aborting...")
|
||||
return
|
||||
|
||||
self.stdout.write(f"Using api key: {api_key}")
|
||||
|
||||
@ -4,14 +4,13 @@ from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('submissions', '0007_submission_manual_validation_requested'),
|
||||
("submissions", "0007_submission_manual_validation_requested"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterUniqueTogether(
|
||||
name='puzzleresponse',
|
||||
name="puzzleresponse",
|
||||
unique_together=set(),
|
||||
),
|
||||
]
|
||||
|
||||
@ -5,16 +5,19 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('animations', '0001_initial'),
|
||||
('submissions', '0008_alter_puzzleresponse_unique_together'),
|
||||
("animations", "0001_initial"),
|
||||
("submissions", "0008_alter_puzzleresponse_unique_together"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='steamcollectionitem',
|
||||
name='points_factor',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='animations.puzzlepointsfactor'),
|
||||
model_name="steamcollectionitem",
|
||||
name="points_factor",
|
||||
field=models.ForeignKey(
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
to="animations.puzzlepointsfactor",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
@ -4,25 +4,30 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('submissions', '0009_steamcollectionitem_points_factor'),
|
||||
("submissions", "0009_steamcollectionitem_points_factor"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='puzzleresponse',
|
||||
name='validated_area',
|
||||
field=models.IntegerField(blank=True, help_text='Manually validated area value'),
|
||||
model_name="puzzleresponse",
|
||||
name="validated_area",
|
||||
field=models.IntegerField(
|
||||
blank=True, help_text="Manually validated area value"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='puzzleresponse',
|
||||
name='validated_cost',
|
||||
field=models.IntegerField(blank=True, help_text='Manually validated cost value'),
|
||||
model_name="puzzleresponse",
|
||||
name="validated_cost",
|
||||
field=models.IntegerField(
|
||||
blank=True, help_text="Manually validated cost value"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='puzzleresponse',
|
||||
name='validated_cycles',
|
||||
field=models.IntegerField(blank=True, help_text='Manually validated cycles value'),
|
||||
model_name="puzzleresponse",
|
||||
name="validated_cycles",
|
||||
field=models.IntegerField(
|
||||
blank=True, help_text="Manually validated cycles value"
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
@ -4,25 +4,24 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('submissions', '0010_alter_puzzleresponse_validated_area_and_more'),
|
||||
("submissions", "0010_alter_puzzleresponse_validated_area_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='puzzleresponse',
|
||||
name='area',
|
||||
field=models.IntegerField(blank=True, help_text='Area value from OCR'),
|
||||
model_name="puzzleresponse",
|
||||
name="area",
|
||||
field=models.IntegerField(blank=True, help_text="Area value from OCR"),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='puzzleresponse',
|
||||
name='cost',
|
||||
field=models.IntegerField(blank=True, help_text='Cost value from OCR'),
|
||||
model_name="puzzleresponse",
|
||||
name="cost",
|
||||
field=models.IntegerField(blank=True, help_text="Cost value from OCR"),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='puzzleresponse',
|
||||
name='cycles',
|
||||
field=models.IntegerField(blank=True, help_text='Cycles value from OCR'),
|
||||
model_name="puzzleresponse",
|
||||
name="cycles",
|
||||
field=models.IntegerField(blank=True, help_text="Cycles value from OCR"),
|
||||
),
|
||||
]
|
||||
|
||||
@ -4,25 +4,33 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('submissions', '0011_alter_puzzleresponse_area_alter_puzzleresponse_cost_and_more'),
|
||||
(
|
||||
"submissions",
|
||||
"0011_alter_puzzleresponse_area_alter_puzzleresponse_cost_and_more",
|
||||
),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='puzzleresponse',
|
||||
name='validated_area',
|
||||
field=models.IntegerField(blank=True, help_text='Manually validated area value', null=True),
|
||||
model_name="puzzleresponse",
|
||||
name="validated_area",
|
||||
field=models.IntegerField(
|
||||
blank=True, help_text="Manually validated area value", null=True
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='puzzleresponse',
|
||||
name='validated_cost',
|
||||
field=models.IntegerField(blank=True, help_text='Manually validated cost value', null=True),
|
||||
model_name="puzzleresponse",
|
||||
name="validated_cost",
|
||||
field=models.IntegerField(
|
||||
blank=True, help_text="Manually validated cost value", null=True
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='puzzleresponse',
|
||||
name='validated_cycles',
|
||||
field=models.IntegerField(blank=True, help_text='Manually validated cycles value', null=True),
|
||||
model_name="puzzleresponse",
|
||||
name="validated_cycles",
|
||||
field=models.IntegerField(
|
||||
blank=True, help_text="Manually validated cycles value", null=True
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
@ -5,16 +5,19 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('animations', '0002_puzzlepointsvalue'),
|
||||
('submissions', '0012_alter_puzzleresponse_validated_area_and_more'),
|
||||
("animations", "0002_puzzlepointsvalue"),
|
||||
("submissions", "0012_alter_puzzleresponse_validated_area_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='steamcollectionitem',
|
||||
name='points_value',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='animations.puzzlepointsvalue'),
|
||||
model_name="steamcollectionitem",
|
||||
name="points_value",
|
||||
field=models.ForeignKey(
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
to="animations.puzzlepointsvalue",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user