1
0
mirror of https://github.com/creyD/asiimov.git synced 2026-06-12 00:52:23 +02:00

Migrated Changes to DB

- Added Admin Link
- Added confirmed trade count
This commit is contained in:
2020-03-08 21:38:48 +01:00
parent 83d6f45cd2
commit 4c0544eb30
4 changed files with 29 additions and 5 deletions

View File

@@ -35,7 +35,7 @@
{% endblock %}
<div id="footer" style="text-align:center">
<a href="https://github.com/creyD/asiimov" target="_blank">GitHub</a>.<a href="{% url 'imprint' %}">Imprint</a>.<a href="{% url 'help' %}">Help</a>
<a href="https://github.com/creyD/asiimov" target="_blank">GitHub</a>.<a href="{% url 'imprint' %}">Imprint</a>.<a href="{% url 'help' %}">Help</a>.<a href="{% url 'admin:index' %}">Admin</a>
</div>
</body>
</html>

View File

@@ -0,0 +1,23 @@
# Generated by Django 3.0.2 on 2020-03-08 20:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0009_gamer_inventory_2'),
]
operations = [
migrations.AddField(
model_name='gamer',
name='confirmed_count',
field=models.PositiveIntegerField(default=0),
),
migrations.AlterField(
model_name='gamer',
name='offer_count',
field=models.PositiveIntegerField(default=0),
),
]

View File

@@ -97,10 +97,10 @@ class Gamer(models.Model):
# Asiimov specific information
inventory = models.ManyToManyField(ItemInstance) # For skins
inventory_2 = models.ManyToManyField(ItemType) # For cases, badges usw
inventory_2 = models.ManyToManyField(ItemType) # For cases, badges etc
badges = models.ManyToManyField(Badge)
offer_count = models.IntegerField(default=0)
confirmed_count = models.PositiveIntegerField(default=0)
offer_count = models.PositiveIntegerField(default=0) # How many offers did the user create in the past?
confirmed_count = models.PositiveIntegerField(default=0) # How many confirmed trades resulted from those offers?
class Offer(models.Model):

View File

@@ -14,7 +14,7 @@
</h2>
<h3>Links</h3>
<ul>
<ul style="list-style:none; text-align:center">
<a href="{{ gamer.profileurl }}" target="_blank"><li>Steam</li></a>
<a href="{% url 'profile_inventory' gamer.steamid %}"><li>Inventory</li></a>
<a href="http://csgo.exchange/id/{{ gamer.steamid }}"><li>csgo.exchange</li></a>
@@ -43,6 +43,7 @@
<h3>Statistics</h3>
<p>Live Offers: <b>{{ live_offers }}</b></p>
<p>Confimed trades: {{ gamer.confirmed_count }}</p>
<p>Offers created: {{ gamer.offer_count }}</p>
<p>Asiimov Member since: {{ gamer.system_user.date_joined }}</p>
<p>Last Asiimov Login: {{ gamer.system_user.last_login }}</p>