Commit be401bd5 authored by Thomas Lotze's avatar Thomas Lotze
Browse files

add some more documentation

parent 3a0e93a2
......@@ -30,6 +30,14 @@ def fetch(url, token, month, project_name, username):
gitlab = Gitlab(url, token)
projects = gitlab.projects.list(all=True)
# We iterate over all projects regardless of our filter settings. When
# filtering for a project name, we have no better way of searching a
# project by name. When filtering for a user, we have no way at all of
# querying all notes authored by that user. As we want to catch all time
# spent by the user in the past regardless of their then or present
# affiliations with groups, projects, issues etc, we won't try to be
# clever and optimise here, even if this results in a full-database scan.
# Let's see whether we'll be forced to optimise by production data.
for project in projects:
if project_name and != project_name:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment