Skip to content

Commit 24fc107

Browse files
committed
Fix style
1 parent 6e72652 commit 24fc107

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

ioiprint/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def upload():
3030
@app.route('/mass', methods=['POST'])
3131
def mass():
3232
filename = request.form['filename']
33-
printer = request.form['printer']
33+
printer = request.form.get('printer', DEFAULT_PRINTER)
3434
count = int(request.form['count'])
3535
for _ in range(count):
3636
print_file(os.path.join(PATH_FOR_TYPE['mass'], filename), printer)

ioiprint/template/first.html.jinja2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<head>
33
<link rel="stylesheet" href="{{ static_path }}/fonts.css">
4-
<link rel="stylesheet" href="{{ static_path }}/style.css">
4+
<link rel="styleshe297/210et" href="{{ static_path }}/style.css">
55
<meta charset="UTF-8">
66
</head>
77
<body>
@@ -16,7 +16,9 @@
1616
<p>Time: {{ time }}</p>
1717
<p>Print ID: {{ print_id }}</p>
1818

19-
<div class="location" style="background-image: url('{{ desk_map_img }}')"></div>
19+
<div class="location">
20+
<img class="map" src="{{ desk_map_img }}">
21+
</div>
2022

2123
<img class="ioi_logo" src="{{ static_path }}/ioi-1.svg">
2224
</div>

ioiprint/template/request.html.jinja2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
<p>Request type: {{ request_message }}</p>
1616
<p>Time: {{ time }}</p>
1717

18-
<div class="location" style="background-image: url('{{ desk_map_img }}')"></div>
18+
<div class="location">
19+
<img class="map" src="{{ desk_map_img }}">
20+
</div>
1921

2022
<p class="notes">Notes:</p>
2123

ioiprint/template/translation.html.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8">
66
</head>
77
<body>
8-
<div class="container last">
8+
<div class="trans-container last">
99
<h1>{{ country_code }}</h1>
1010
<h2>{{ country_name }}</h2>
1111

0 commit comments

Comments
 (0)