Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
fix create experiments/items not sending post requests
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed May 18, 2020
1 parent 8c6ed22 commit 67c5795
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for elabapy

## Version 0.6.1

* Fix create experiment/items not sending POST requests

## Version 0.6.0

### BREAKING CHANGE
Expand Down
4 changes: 2 additions & 2 deletions elabapy/Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ def create_experiment(self):
"""
Create an experiment
"""
return self.send_req("experiments")
return self.send_req("experiments", verb='POST')

def create_item(self, id):
"""
Create an item, the id is the items_types id
"""
return self.send_req("items/" + str(id))
return self.send_req("items/" + str(id), verb='POST')

def get_all_experiments(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion elabapy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""A python module to interact with elabftw API"""

__version__ = "0.6.0"
__version__ = "0.6.1"
__author__ = "Nicolas CARPi"
__author_email__ = "[email protected]"
__license__ = "GPL v3"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='elabapy',
version='0.6.0',
version='0.6.1',
description='elabftw API to manage experiments and items',
author='Nicolas CARPi',
author_email='[email protected]',
Expand Down

0 comments on commit 67c5795

Please sign in to comment.