[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-survey] branch master updated: providing favicon
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-survey] branch master updated: providing favicon |
Date: |
Wed, 02 May 2018 16:04:49 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository survey.
The following commit(s) were added to refs/heads/master by this push:
new 5ae52f9 providing favicon
5ae52f9 is described below
commit 5ae52f9639bba7fd9dccaf70f67b0c6ffde276d6
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 2 16:04:30 2018 +0200
providing favicon
---
setup.py | 1 +
talersurvey/survey/static/favicon.ico | 1 +
talersurvey/survey/survey.py | 6 ++++++
3 files changed, 8 insertions(+)
diff --git a/setup.py b/setup.py
index 2fa7539..50929e4 100755
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,7 @@ setup(name='talersurvey',
package_data={
'':[
"survey/templates/*.html",
+ "survey/static/favicon.ico",
"survey/static/*.svg",
"survey/static/*.css",
"survey/static/*.js",
diff --git a/talersurvey/survey/static/favicon.ico
b/talersurvey/survey/static/favicon.ico
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/talersurvey/survey/static/favicon.ico
@@ -0,0 +1 @@
+
diff --git a/talersurvey/survey/survey.py b/talersurvey/survey/survey.py
index 5126963..717e3a2 100644
--- a/talersurvey/survey/survey.py
+++ b/talersurvey/survey/survey.py
@@ -98,6 +98,12 @@ def internal_error(e):
message="Internal error",
stack=traceback.format_exc())
address@hidden("/favicon.ico")
+def favicon():
+ print("will look into: " + os.path.join(app.root_path, 'static'))
+ return flask.send_from_directory(os.path.join(app.root_path, 'static'),
+ "favicon.ico",
mimetype="image/vnd.microsoft.ico")
+
@app.route("/survey-stats", methods=["GET"])
def survey_stats():
stats = backend_get("tip-query", dict(instance="default"))
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-survey] branch master updated: providing favicon,
gnunet <=