Compare commits
2
Commits
master
..
d4dbd3d9da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4dbd3d9da | ||
|
|
5b7f847bc6 |
+45
-9
@@ -1,10 +1,46 @@
|
|||||||
*.pyc
|
# Virtuelle Umgebung
|
||||||
*.swp
|
venv/
|
||||||
bin/
|
env/
|
||||||
manage.py
|
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/
|
media/
|
||||||
old_stuff/
|
staticfiles/
|
||||||
static/
|
|
||||||
templates/blogindex.html-media
|
# IDE
|
||||||
tippy/static/
|
.vscode/
|
||||||
warnings.txt
|
.idea/
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*~
|
||||||
|
|
||||||
|
# Umgebungsvariablen
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+8
-6
@@ -1,6 +1,8 @@
|
|||||||
Django~=4.1.7
|
asgiref==3.12.1
|
||||||
psycopg2~=2.9.5
|
Django==6.1.1
|
||||||
suds~=1.1.2
|
pillow==12.3.0
|
||||||
Pillow~=9.4.0
|
psycopg2==2.9.13
|
||||||
pytz~=2023.2
|
pytz==2026.3.post1
|
||||||
urllib3~=1.26.15
|
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)
|
leagueName = models.CharField(max_length=128)
|
||||||
season = models.CharField(max_length=4)
|
season = models.CharField(max_length=4)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
unique_together = ("leagueShortcut", "season")
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return (self.leagueShortcut)
|
return (self.leagueShortcut)
|
||||||
|
|
||||||
@@ -62,6 +65,12 @@ class Match(models.Model):
|
|||||||
group = models.IntegerField()
|
group = models.IntegerField()
|
||||||
matchday = models.IntegerField()
|
matchday = models.IntegerField()
|
||||||
matchday_name = models.CharField(max_length=128)
|
matchday_name = models.CharField(max_length=128)
|
||||||
|
|
||||||
|
competition = models.ForeignKey(
|
||||||
|
Competition,
|
||||||
|
on_delete=models.CASCADE
|
||||||
|
)
|
||||||
|
|
||||||
idTeam1 = models.ForeignKey(
|
idTeam1 = models.ForeignKey(
|
||||||
Team, related_name='+',
|
Team, related_name='+',
|
||||||
on_delete=models.CASCADE
|
on_delete=models.CASCADE
|
||||||
@@ -70,11 +79,10 @@ class Match(models.Model):
|
|||||||
Team, related_name='+',
|
Team, related_name='+',
|
||||||
on_delete=models.CASCADE
|
on_delete=models.CASCADE
|
||||||
)
|
)
|
||||||
|
|
||||||
pointsTeam1 = models.SmallIntegerField()
|
pointsTeam1 = models.SmallIntegerField()
|
||||||
pointsTeam2 = models.SmallIntegerField()
|
pointsTeam2 = models.SmallIntegerField()
|
||||||
finished = models.BooleanField()
|
finished = models.BooleanField()
|
||||||
season = models.CharField(max_length=4)
|
|
||||||
leagueShortcut = models.CharField(max_length=12)
|
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return (str(self.matchID))
|
return (str(self.matchID))
|
||||||
@@ -121,7 +129,7 @@ class Score(models.Model):
|
|||||||
return str(self.client)
|
return str(self.client)
|
||||||
|
|
||||||
|
|
||||||
class chart(models.Model):
|
class Chart(models.Model):
|
||||||
team = models.ForeignKey(
|
team = models.ForeignKey(
|
||||||
Team,
|
Team,
|
||||||
on_delete=models.CASCADE
|
on_delete=models.CASCADE
|
||||||
|
|||||||
Reference in New Issue
Block a user