Boom. Video game metadata

This commit is contained in:
2023-03-05 16:36:36 -05:00
parent a0e852775c
commit c757e743ac
15 changed files with 1006 additions and 106 deletions

View File

@ -1,3 +1,5 @@
import logging
from typing import Dict
from uuid import uuid4
from django.db import models
@ -5,6 +7,8 @@ from django_extensions.db.models import TimeStampedModel
BNULL = {"blank": True, "null": True}
logger = logging.getLogger(__name__)
class ScrobblableMixin(TimeStampedModel):
SECONDS_TO_STALE = 1600
@ -13,7 +17,13 @@ class ScrobblableMixin(TimeStampedModel):
title = models.CharField(max_length=255, **BNULL)
run_time = models.CharField(max_length=8, **BNULL)
run_time_ticks = models.PositiveBigIntegerField(**BNULL)
# thumbs = models.IntegerField(default=Opinion.NEUTRAL, choices=Opinion.choices)
class Meta:
abstract = True
def fix_metadata(self):
logger.warn("fix_metadata() not implemented yet")
@classmethod
def find_or_create(cls):
logger.warn("find_or_create() not implemented yet")