From f49913549a72edbfc99e1745ac6ac09e9f46c3ed Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 3 Feb 2022 12:58:06 +0100 Subject: a --- rss_to_gitea/gitea.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rss_to_gitea/gitea.py b/rss_to_gitea/gitea.py index fdb1203..39ea763 100644 --- a/rss_to_gitea/gitea.py +++ b/rss_to_gitea/gitea.py @@ -33,12 +33,12 @@ class GiteaAPI: return result.json() - def createIssue(self, owner, repo, title, content): + def createIssue(self, _owner, _repo, _title, _content): pass - def searchIssue(self, _owner, _repo, _title, _labels): + def searchIssue(self, _owner, _repo, _title, _labels, _state='open'): data= { - 'state':'open', + 'state':_state, 'labels':_labels, 'created_by':self.username, 'q':_title @@ -49,6 +49,6 @@ class GiteaAPI: for issue in result: print(issue['title']) - def updateIssue(self, owner, repo, issueid): + def updateIssue(self, _owner, _repo, _issueid): pass -- cgit v1.2.3