Compare commits
2
Commits
master
...
d4dbd3d9da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4dbd3d9da | ||
|
|
5b7f847bc6 |
+45
-9
@@ -1,10 +1,46 @@
|
||||
*.pyc
|
||||
*.swp
|
||||
bin/
|
||||
manage.py
|
||||
# Virtuelle Umgebung
|
||||
venv/
|
||||
env/
|
||||
ENV/
|
||||
.venv
|
||||
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*.so
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# Django
|
||||
*.log
|
||||
db.sqlite3
|
||||
media/
|
||||
old_stuff/
|
||||
static/
|
||||
templates/blogindex.html-media
|
||||
tippy/static/
|
||||
warnings.txt
|
||||
staticfiles/
|
||||
|
||||
# IDE
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# Umgebungsvariablen
|
||||
.env
|
||||
.env.local
|
||||
|
||||
|
||||
|
||||
+8
-6
@@ -1,6 +1,8 @@
|
||||
Django~=4.1.7
|
||||
psycopg2~=2.9.5
|
||||
suds~=1.1.2
|
||||
Pillow~=9.4.0
|
||||
pytz~=2023.2
|
||||
urllib3~=1.26.15
|
||||
asgiref==3.12.1
|
||||
Django==6.1.1
|
||||
pillow==12.3.0
|
||||
psycopg2==2.9.13
|
||||
pytz==2026.3.post1
|
||||
sqlparse==0.6.0
|
||||
suds-community==1.2.0
|
||||
urllib3==2.8.0
|
||||
|
||||
+11
-3
@@ -37,6 +37,9 @@ class Competition(models.Model):
|
||||
leagueName = models.CharField(max_length=128)
|
||||
season = models.CharField(max_length=4)
|
||||
|
||||
class Meta:
|
||||
unique_together = ("leagueShortcut", "season")
|
||||
|
||||
def __unicode__(self):
|
||||
return (self.leagueShortcut)
|
||||
|
||||
@@ -62,6 +65,12 @@ class Match(models.Model):
|
||||
group = models.IntegerField()
|
||||
matchday = models.IntegerField()
|
||||
matchday_name = models.CharField(max_length=128)
|
||||
|
||||
competition = models.ForeignKey(
|
||||
Competition,
|
||||
on_delete=models.CASCADE
|
||||
)
|
||||
|
||||
idTeam1 = models.ForeignKey(
|
||||
Team, related_name='+',
|
||||
on_delete=models.CASCADE
|
||||
@@ -70,11 +79,10 @@ class Match(models.Model):
|
||||
Team, related_name='+',
|
||||
on_delete=models.CASCADE
|
||||
)
|
||||
|
||||
pointsTeam1 = models.SmallIntegerField()
|
||||
pointsTeam2 = models.SmallIntegerField()
|
||||
finished = models.BooleanField()
|
||||
season = models.CharField(max_length=4)
|
||||
leagueShortcut = models.CharField(max_length=12)
|
||||
|
||||
def __unicode__(self):
|
||||
return (str(self.matchID))
|
||||
@@ -121,7 +129,7 @@ class Score(models.Model):
|
||||
return str(self.client)
|
||||
|
||||
|
||||
class chart(models.Model):
|
||||
class Chart(models.Model):
|
||||
team = models.ForeignKey(
|
||||
Team,
|
||||
on_delete=models.CASCADE
|
||||
|
||||
Reference in New Issue
Block a user