Browse Source

pep8 and documentation fixes

Pierre-Yves Chibon 7 năm trước cách đây
mục cha
commit
ad9b7259e4
2 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 6 4
      pagure/api/user.py
  2. 0 1
      pagure/lib/model.py

+ 6 - 4
pagure/api/user.py

@@ -142,7 +142,7 @@ def api_view_user_activity_stats(username):
     +---------------+----------+--------------+----------------------------+
     | ``format``    | string   | Optional     | | Allows changing the      |
     |               |          |              |   of the date/time returned|
-    |               |          |              |   from iso formato to unix |
+    |               |          |              |   from iso format to unix  |
     |               |          |              |   timestamp                |
     |               |          |              |   Can be: `timestamp`      |
     |               |          |              |   or `isoformat`           |
@@ -194,7 +194,9 @@ def api_view_user_activity_stats(username):
         raise pagure.exceptions.APIError(404, error_code=APIERROR.ENOUSER)
 
     stats = pagure.lib.get_yearly_stats_user(
-        SESSION, user, datetime.datetime.utcnow().date() + datetime.timedelta(days=1)
+        SESSION,
+        user,
+        datetime.datetime.utcnow().date() + datetime.timedelta(days=1)
     )
 
     def format_date(d):
@@ -244,8 +246,8 @@ def api_view_user_activity_date(username, date):
     |               |          |              |   best provided in ISO     |
     |               |          |              |   format: YYYY-MM-DD       |
     +---------------+----------+--------------+----------------------------+
-    | ``grouped``   | boolean  | Optional     | | Whether to group the     |
-    |               |          |              |   commits or not           |
+    | ``grouped``   | boolean  | Optional     | | Whether or not to group  |
+    |               |          |              |   the commits              |
     +---------------+----------+--------------+----------------------------+
 
 

+ 0 - 1
pagure/lib/model.py

@@ -1551,7 +1551,6 @@ class Watcher(BASE):
     )
 
 
-
 class PagureLog(BASE):
     """
     Log user's actions.