Skip to content

Commit 1732245

Browse files
committed
PYAPI-12 Jira: Reindex
1 parent 395d3bd commit 1732245

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

atlassian/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def get(self, path):
1212
url = "{0}{1}".format(self.url, path)
1313
return requests.get(url, auth=(self.username, self.password))
1414

15-
def post(self, path, data):
15+
def post(self, path, data=None):
1616
url = "{0}{1}".format(self.url, path)
1717
return requests.post(url, data, auth=(self.username, self.password))
1818

atlassian/jira.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33

44
class Jira(Atlassian):
55

6+
def reindex_status(self):
7+
return self.get("/rest/api/2/reindex")
8+
69
def reindex(self):
7-
return self.get("/rest/api/2/reindex")
10+
return self.post("/rest/api/2/reindex")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
name="atlassian-python-api",
1111
description="Atlassian Python API",
1212
license="Apache License 2.0",
13-
version="0.1.0",
13+
version="0.1.1",
1414
download_url="https://github.com/AgileBoss/atlassian-python-api",
1515

1616
author="Matt Harasymczuk",

0 commit comments

Comments
 (0)