Stuff
This commit is contained in:
@@ -23,6 +23,7 @@ class Donator(json.JSONEncoder):
|
||||
cur = conn.cursor()
|
||||
cur.execute("""select name, sum(amount) from orders
|
||||
group by name
|
||||
order by sum(amount) desc
|
||||
LIMIT 5
|
||||
""")
|
||||
data = cur.fetchall();
|
||||
|
||||
@@ -59,7 +59,7 @@ def index():
|
||||
|
||||
@app.route('/test')
|
||||
def test():
|
||||
p = Payment(int(random.random()*100),5000,'TEST DE MESSAGE BIEN LONG SKLDJQLKDJQLKSJDQLSKJDQLKJD','Nom donation')
|
||||
p = Payment(int(random.random()*100),0,'TEST DE MESSAGE BIEN LONG SKLDJQLKDJQLKSJDQLSKJDQLKJD','Test')
|
||||
p.save(get_db())
|
||||
notify_client_payment(p)
|
||||
return jsonify(p), 200
|
||||
|
||||
@@ -24,7 +24,7 @@ div {
|
||||
</video>
|
||||
<div>
|
||||
<p class="donation-name">{{ Name }}</p>
|
||||
<p class="donation-amount">{{ Euro }}</p>
|
||||
<p class="donation-test">{{ Message }}</p>
|
||||
<p class="donation-amount">{{ Euro }} €</p>
|
||||
<p class="donation-text">{{ Message }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Binary file not shown.
@@ -9,11 +9,12 @@ body {
|
||||
.donation-name{
|
||||
font-style: bold;
|
||||
color: red;
|
||||
font-size: 200%;
|
||||
}
|
||||
|
||||
.donation-text{
|
||||
font-style: bold;
|
||||
color: white;
|
||||
color: yellow;
|
||||
}
|
||||
|
||||
.donation-amount{
|
||||
|
||||
Reference in New Issue
Block a user