From a1fbbc64555a00f6532410fcd2d5d8b5e1418cef Mon Sep 17 00:00:00 2001
From: janmax <mail-github@jmx.io>
Date: Thu, 23 Nov 2017 11:00:18 +0100
Subject: [PATCH] Revert "Added local prospector pre-commit hook"

This reverts commit 0acfd677bd2fbe0d6f1c46b5a3e51176338e2e14.
---
 backend/delbert.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/backend/delbert.py b/backend/delbert.py
index eb657222..4e05dabd 100644
--- a/backend/delbert.py
+++ b/backend/delbert.py
@@ -16,6 +16,7 @@ from core.models import Student, Submission
 
 
 
+unused_variable =  []
 
 def parseme():
     parser      = argparse.ArgumentParser()
@@ -84,7 +85,7 @@ def parseme():
     return parser.parse_args()
 
 
-def handle_passwordlist(output=sys.stdout, instance=""):
+def handle_passwordlist(output=sys.stdout, instance="", **kwargs):
     with open('/usr/share/dict/words') as words:
         choose_from = list({word.strip().lower()
                             for word in words if 5 < len(word) < 8})
@@ -102,7 +103,7 @@ def handle_passwordlist(output=sys.stdout, instance=""):
                          student.user.username, password, instance])
 
 
-def handle_enableusers(switch, exclude, include):
+def handle_enableusers(switch, exclude, include, **kwargs):
 
     if include:
         for user in User.objects.filter(username__in=include):
@@ -114,7 +115,7 @@ def handle_enableusers(switch, exclude, include):
             user.save()
 
 
-def handle_replaceusernames(matno2username_dict):
+def handle_replaceusernames(matno2username_dict, **kwargs):
     matno2username = json.JSONDecoder().decode(matno2username_dict.read())
     for student in Student.objects.all():
         if student.matrikel_no in matno2username:
@@ -123,12 +124,12 @@ def handle_replaceusernames(matno2username_dict):
             student.user.save()
 
 
-def handle_extractsubmissions():
+def handle_extractsubmissions(output, **kwargs):
     for submission in Submission.objects.filter(feedback__isnull=False).order_by('type'):
         print(submission.feedback.score, repr(submission.text), file=open(str(submission.type).replace(' ', '_'), 'a'))
 
 
-def handle_importer():
+def handle_importer(**kwargs):
     util.importer.start()
 
 def main():
-- 
GitLab