Fixed constants in gitea.Issue

The two constants for opened and closed issues were swapped.
pull/5/head
Holger Frey 2021-05-06 15:06:36 +02:00
rodzic d0fe221e54
commit 37109e844c
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -464,8 +464,8 @@ class Issue(GiteaApiObject):
GET_COMMENTS = """/repos/%s/%s/issues/comments"""
CREATE_ISSUE = """/repos/{owner}/{repo}/issues"""
OPENED = "closed"
CLOSED = "open"
OPENED = "open"
CLOSED = "closed"
def __init__(self, gitea, id: int):
super(Issue, self).__init__(gitea, id=id)