whatdidyoudo 0.1.4__py3-none-any.whl → 0.1.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of whatdidyoudo might be problematic. Click here for more details.

@@ -41,38 +41,39 @@ label {
41
41
  display: none;
42
42
  }
43
43
 
44
+ input[type="text"],
45
+ input[type="date"],
46
+ button {
47
+ border: none;
48
+ border-radius: 8px;
49
+ box-sizing: border-box;
50
+ font-family: 'Segoe UI', Arial, sans-serif;
51
+ font-size: 1.1em;
52
+ font-weight: 600;
53
+ /* min-height: 3em; */
54
+ outline: none;
55
+ }
56
+
44
57
  input[type="text"] {
45
58
  flex: 2 1 200px;
46
59
  padding: 0.7em 1em;
47
- border-radius: 8px;
48
- border: none;
49
- font-size: 1.1em;
50
60
  background: #2c2f34;
51
61
  color: #f3f3f3;
52
- outline: none;
53
62
  }
54
63
 
55
64
  input[type="date"] {
56
65
  flex: 1 1 120px;
57
66
  padding: 0.7em 0.5em;
58
- border-radius: 8px;
59
- border: none;
60
- font-size: 1.1em;
61
67
  background: #2c2f34;
62
68
  color: #f3f3f3;
63
- outline: none;
64
69
  min-width: 120px;
65
70
  max-width: 160px;
66
71
  }
67
72
 
68
73
  button {
69
74
  padding: 0.7em 1.5em;
70
- border-radius: 8px;
71
- border: none;
72
75
  background: #4f8cff;
73
76
  color: #fff;
74
- font-size: 1.1em;
75
- font-weight: 600;
76
77
  cursor: pointer;
77
78
  transition: background 0.2s;
78
79
  }
@@ -87,6 +88,15 @@ h2 a {
87
88
  letter-spacing: 1px;
88
89
  }
89
90
 
91
+ .footer {
92
+ text-align: center;
93
+ font-size: 0.85em;
94
+ color: #b0b0b0;
95
+ margin-top: 2em;
96
+ margin-bottom: 0.5em;
97
+ letter-spacing: 0.5px;
98
+ }
99
+
90
100
  @media (max-width: 600px) {
91
101
  .container {
92
102
  padding: 1em 0.5em;
@@ -2,6 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
6
  <title>What Did You Do?</title>
6
7
  <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
7
8
  <script>
@@ -29,21 +30,27 @@
29
30
 
30
31
  <button type="submit">Show</button>
31
32
  </form>
32
- </div>
33
33
  {% if user and date %}
34
34
  {% if error %}
35
35
  <p class=error>{{ error }}</p>
36
36
  {% elif changes %}
37
- <p>{{ user }} did some changes on {{ date }}!</p>
38
- {% for app, count in changes.items() %}
37
+ <p>{{ user }} did {{ changes.values() | sum }} changes in {{ changesets }} changeset{{ "s" if changesets > 1 else "" }} on {{ date }}!</p>
39
38
  <ul>
40
- <li>{{ count }} changes in {{ app }}</li>
41
- </ul>
39
+ {% for app, count in changes.items() %}
40
+ <li>{{ count }} changes in {{ app }}</li>
42
41
  {% endfor %}
43
- That's a total of {{ changesets }} changesets.
42
+ </ul>
44
43
  {% else %}
45
44
  <p>{{ user }} did not do anything on {{ date }}.</p>
46
45
  {% endif %}
46
+ {% else %}
47
+ <p>
48
+ How much did you contribute to OpenStreetMap today? Or any other day?
49
+
50
+ To answer this question, enter your OSM username and the date you want to check above and click "Show".
51
+ </p>
47
52
  {% endif %}
53
+ <p class="footer">Powered by <a href="https://github.com/rompe/whatdidyoudo">whatdidyoudo {{ config['VERSION'] }}</a></p>
54
+ </div>
48
55
  </body>
49
56
  </html>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: whatdidyoudo
3
- Version: 0.1.4
3
+ Version: 0.1.7
4
4
  Summary: A minimal Flask app that shows the amount of OpenStreetMap changes made by a user on a day.
5
5
  Project-URL: Homepage, https://github.com/rompe/whatdidyoudo
6
6
  Project-URL: Issues, https://github.com/rompe/whatdidyoudo/issues
@@ -8,6 +8,7 @@ Author-email: Ulf Rompe <whatdidyoudo.rompe.org@rompe.org>
8
8
  License: MIT
9
9
  Requires-Python: >=3.11
10
10
  Requires-Dist: flask-caching==2.3.1
11
+ Requires-Dist: flask-limiter>=4.0.0
11
12
  Requires-Dist: flask>=3.0.3
12
13
  Requires-Dist: requests>=2.32.4
13
14
  Provides-Extra: dev
@@ -0,0 +1,7 @@
1
+ whatdidyoudo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ whatdidyoudo/app.py,sha256=VVJiOLfYzkp4o46PUlezyAPvp4gXCrx38CiTkuO2mJI,3361
3
+ whatdidyoudo/static/style.css,sha256=hnmgBB_Gq4Q4s8ciZmi-zZYa7l-PnPF630Q5J6IL1kI,2130
4
+ whatdidyoudo/templates/form.html,sha256=-p6OerNSG72D1Ev36ZJXMzU7seuOGasi-IXkMJDnCVY,2384
5
+ whatdidyoudo-0.1.7.dist-info/METADATA,sha256=OIK6WPuQ7jzNUZtS4wO3B5MO9zdZouwnSwzWdaOMNKc,2510
6
+ whatdidyoudo-0.1.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ whatdidyoudo-0.1.7.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- whatdidyoudo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- whatdidyoudo/app.py,sha256=VVJiOLfYzkp4o46PUlezyAPvp4gXCrx38CiTkuO2mJI,3361
3
- whatdidyoudo/static/style.css,sha256=AtT4pHBBrDSMxzForapiP-F-l648lQSISxgg6n93-98,1958
4
- whatdidyoudo/templates/form.html,sha256=VLWdk1jdrpvKCtekSF088UXk9vXWLwJ4w0pkscpyy30,1904
5
- whatdidyoudo-0.1.4.dist-info/METADATA,sha256=PxXDqjzClosSPHMPZ725jOG0E0uIHiQe9wHAT0p1_eQ,2474
6
- whatdidyoudo-0.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- whatdidyoudo-0.1.4.dist-info/entry_points.txt,sha256=TyJsRAleMbWIvpeNrjJpfeO4xgrIkOrzDZ8viefhsE4,51
8
- whatdidyoudo-0.1.4.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- whatdidyoudo = whatdidyoudo:main