Browse Source

Fix typo in views

master
parent
commit
3e6649ba07
Signed by: Christian van Onzenoodt <christian.van-onzenoodt@uni-ulm.de> GPG Key ID: 7B2E632FDC852341
2 changed files with 4 additions and 4 deletions
  1. 3
    3
      trackify/server/server.py
  2. 1
    1
      trackify/server/views.py

+ 3
- 3
trackify/server/server.py View File

@@ -4,7 +4,7 @@ from flask_apscheduler import APScheduler
4 4
 from flask_socketio import SocketIO, emit
5 5
 from pony.flask import Pony
6 6
 from trackify.server.logger import Logger
7
-from trackify.server.views import HistoryView, FavouriteTrackView
7
+from trackify.server.views import HistoryView, FavoriteTrackView
8 8
 from trackify.tracker.tracker import scrape_current_track, \
9 9
     NotAuthorizedException
10 10
 
@@ -69,8 +69,8 @@ def test_handler(data):
69 69
 def register_routes(flask_app):
70 70
     flask_app.add_url_rule('/api/history',
71 71
                            view_func=HistoryView.as_view('history'))
72
-    flask_app.add_url_rule('/api/favourite/track',
73
-                           view_func=FavouriteTrackView.as_view('favouriteTrack'))
72
+    flask_app.add_url_rule('/api/favorite/track',
73
+                           view_func=FavoriteTrackView.as_view('favoriteTrack'))
74 74
 
75 75
 
76 76
 def register_event_handlers(flask_socket):

+ 1
- 1
trackify/server/views.py View File

@@ -12,7 +12,7 @@ class HistoryView(MethodView):
12 12
         return jsonify(list(map(lambda x: x.to_dict(), requests)))
13 13
 
14 14
 
15
-class FavouriteTrackView(MethodView):
15
+class FavoriteTrackView(MethodView):
16 16
     def get(self):
17 17
         start = request.args.get('start')
18 18
         end = request.args.get('end')

Loading…
Cancel
Save