-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from zediious/0.3.2
Changes for 0.3.2
- Loading branch information
Showing
17 changed files
with
387 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from django import forms | ||
|
||
from raptorWeb.gameservers.models import Server | ||
|
||
class StatisticFilterForm(forms.Form): | ||
start = forms.DateTimeField( | ||
required=False, | ||
widget=forms.DateTimeInput(attrs={'type': 'datetime-local'})) | ||
|
||
end = forms.DateTimeField( | ||
required=False, | ||
widget=forms.DateTimeInput(attrs={'type': 'datetime-local'})) | ||
|
||
server = forms.ModelChoiceField( | ||
queryset=Server.objects.filter(archived=False), | ||
empty_label="Choose a Server") | ||
|
||
class StatisticFilterFormFireFox(forms.Form): | ||
""" | ||
Firefox does not support the datetime-local HTML5 widget | ||
and as such needs to be supplied with only a date widget. | ||
""" | ||
start = forms.DateTimeField( | ||
required=False, | ||
widget=forms.DateTimeInput(attrs={'type': 'date'})) | ||
|
||
end = forms.DateTimeField( | ||
required=False, | ||
widget=forms.DateTimeInput(attrs={'type': 'date'})) | ||
|
||
server = forms.ModelChoiceField( | ||
queryset=Server.objects.filter(archived=False), | ||
to_field_name='modpack_name', | ||
empty_label="Choose a Server") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.7 on 2023-11-06 18:16 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('gameservers', '0003_server_archived'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='player', | ||
name='online', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
raptorWeb/gameservers/migrations/0005_player_last_online.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 4.2.7 on 2023-11-06 18:35 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('gameservers', '0004_player_online'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='player', | ||
name='last_online', | ||
field=models.DateTimeField(auto_now_add=True, verbose_name='Last Online'), | ||
), | ||
] |
32 changes: 32 additions & 0 deletions
32
raptorWeb/gameservers/migrations/0006_alter_player_server_playercounthistoric.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Generated by Django 4.2.7 on 2023-11-06 19:59 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('gameservers', '0005_player_last_online'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='player', | ||
name='server', | ||
field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.PROTECT, to='gameservers.server'), | ||
), | ||
migrations.CreateModel( | ||
name='PlayerCountHistoric', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('player_count', models.IntegerField(verbose_name='Players Online')), | ||
('checked_time', models.DateTimeField(auto_now_add=True, verbose_name='Time of Query')), | ||
('server', models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='gameservers.server')), | ||
], | ||
options={ | ||
'verbose_name': 'Historic Player Count', | ||
'verbose_name_plural': 'Historic Player Counts', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.