whatdidyoudo 0.1.8__tar.gz → 0.1.9__tar.gz
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.
- {whatdidyoudo-0.1.8 → whatdidyoudo-0.1.9}/PKG-INFO +1 -1
- {whatdidyoudo-0.1.8 → whatdidyoudo-0.1.9}/whatdidyoudo/app.py +4 -3
- {whatdidyoudo-0.1.8 → whatdidyoudo-0.1.9}/whatdidyoudo/static/style.css +4 -4
- {whatdidyoudo-0.1.8 → whatdidyoudo-0.1.9}/whatdidyoudo/templates/form.html +1 -1
- {whatdidyoudo-0.1.8 → whatdidyoudo-0.1.9}/.gitignore +0 -0
- {whatdidyoudo-0.1.8 → whatdidyoudo-0.1.9}/README.md +0 -0
- {whatdidyoudo-0.1.8 → whatdidyoudo-0.1.9}/pyproject.toml +0 -0
- {whatdidyoudo-0.1.8 → whatdidyoudo-0.1.9}/whatdidyoudo/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: whatdidyoudo
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
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
|
|
@@ -9,7 +9,7 @@ from flask_caching import Cache
|
|
|
9
9
|
from flask_limiter import Limiter
|
|
10
10
|
from flask_limiter.util import get_remote_address
|
|
11
11
|
|
|
12
|
-
__version__ = "0.1.
|
|
12
|
+
__version__ = "0.1.9"
|
|
13
13
|
|
|
14
14
|
app = Flask(__name__)
|
|
15
15
|
cache = Cache(app, config={"CACHE_TYPE": "SimpleCache",
|
|
@@ -82,12 +82,13 @@ def whatdidyoudo(user: str | None = None, date: str | None = None) -> str:
|
|
|
82
82
|
error = f"Can't determine changes for user {user} on {date}."
|
|
83
83
|
|
|
84
84
|
return render_template('form.html', user=user, date=date, changes=changes,
|
|
85
|
-
changesets=changesets, error=error,
|
|
85
|
+
changesets=changesets, error=error,
|
|
86
|
+
version=__version__)
|
|
86
87
|
|
|
87
88
|
|
|
88
89
|
def main():
|
|
89
90
|
"""Run in debug mode."""
|
|
90
|
-
app.run(debug=True)
|
|
91
|
+
app.run(host="0.0.0.0", debug=True)
|
|
91
92
|
|
|
92
93
|
|
|
93
94
|
if __name__ == "__main__":
|
|
@@ -17,7 +17,7 @@ body {
|
|
|
17
17
|
padding: 2em 2.5em 1.5em 2.5em;
|
|
18
18
|
margin-top: 2em;
|
|
19
19
|
max-width: 600px;
|
|
20
|
-
width:
|
|
20
|
+
width: 95%;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.error {
|
|
@@ -32,7 +32,7 @@ body {
|
|
|
32
32
|
form {
|
|
33
33
|
display: flex;
|
|
34
34
|
flex-direction: row;
|
|
35
|
-
align-items: flex-end;
|
|
35
|
+
/* align-items: flex-end; */
|
|
36
36
|
gap: 1em;
|
|
37
37
|
width: 100%;
|
|
38
38
|
}
|
|
@@ -55,14 +55,14 @@ button {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
input[type="text"] {
|
|
58
|
-
flex: 2 1 200px;
|
|
58
|
+
/* flex: 2 1 200px; */
|
|
59
59
|
padding: 0.7em 1em;
|
|
60
60
|
background: #2c2f34;
|
|
61
61
|
color: #f3f3f3;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
input[type="date"] {
|
|
65
|
-
flex: 1 1 120px;
|
|
65
|
+
/* flex: 1 1 120px; */
|
|
66
66
|
padding: 0.7em 0.5em;
|
|
67
67
|
background: #2c2f34;
|
|
68
68
|
color: #f3f3f3;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
To answer this question, enter your OSM username and the date you want to check above and click "Show".
|
|
52
52
|
</p>
|
|
53
53
|
{% endif %}
|
|
54
|
-
<p class="footer">Powered by <a href="https://github.com/rompe/whatdidyoudo">whatdidyoudo {{
|
|
54
|
+
<p class="footer">Powered by <a href="https://github.com/rompe/whatdidyoudo">whatdidyoudo {{ version }}</a></p>
|
|
55
55
|
</div>
|
|
56
56
|
</body>
|
|
57
57
|
</html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|