Changeset - 85e34d874a1e
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-12-26 04:05:14
mads@kiilerich.com
Grafted from: f88c1f45341a
lib: avoid comparing ordering with None

Fails in py3.
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/celerylib/tasks.py
Show inline comments
 
@@ -124,7 +124,7 @@ def get_commits_stats(repo_name, ts_min_
 

	
 
        log.debug('starting parsing %s', parse_limit)
 

	
 
        last_rev = last_rev + 1 if last_rev >= 0 else 0
 
        last_rev = last_rev + 1 if last_rev and last_rev >= 0 else 0
 
        log.debug('Getting revisions from %s to %s',
 
             last_rev, last_rev + parse_limit
 
        )
 
@@ -142,8 +142,7 @@ def get_commits_stats(repo_name, ts_min_
 
                except ValueError:
 
                    time_pos = None
 

	
 
                if time_pos >= 0 and time_pos is not None:
 

	
 
                if time_pos is not None and time_pos >= 0:
 
                    datadict = \
 
                        co_day_auth_aggr[akc(cs.author)]['data'][time_pos]
 

	
0 comments (0 inline, 0 general)