crud-mysql 0.1.3__tar.gz → 0.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/PKG-INFO +2 -2
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/README.md +1 -1
- crud_mysql-0.1.6/crud_mysql/__init__.py +2 -0
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/crud_mysql/crud_object.py +2 -2
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/crud_mysql.egg-info/PKG-INFO +2 -2
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/setup.py +1 -1
- crud_mysql-0.1.3/crud_mysql/__init__.py +0 -1
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/LICENCE +0 -0
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/crud_mysql/endpoints.py +0 -0
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/crud_mysql/vars.py +0 -0
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/crud_mysql.egg-info/SOURCES.txt +0 -0
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/crud_mysql.egg-info/dependency_links.txt +0 -0
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/crud_mysql.egg-info/requires.txt +0 -0
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/crud_mysql.egg-info/top_level.txt +0 -0
- {crud_mysql-0.1.3 → crud_mysql-0.1.6}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: crud-mysql
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: crud defiend by json
|
|
5
5
|
Home-page: https://github.com/Ms-Shoshany/crud-mysql
|
|
6
6
|
Author: hanna
|
|
@@ -29,7 +29,7 @@ main.py / app.py - example
|
|
|
29
29
|
|
|
30
30
|
from flask import Flask
|
|
31
31
|
from flask_cors import CORS
|
|
32
|
-
from
|
|
32
|
+
from crud_mysql import crud
|
|
33
33
|
|
|
34
34
|
app = Flask(__name__)
|
|
35
35
|
|
|
@@ -27,9 +27,9 @@ class CrudObject:
|
|
|
27
27
|
raise Exception(f"cant find {self.object_type} with id: {object_id}")
|
|
28
28
|
return object
|
|
29
29
|
|
|
30
|
-
def get_objects(self, filter, include_columns=[], exclude_columns=[]):
|
|
30
|
+
def get_objects(self, filter, include_columns=[], exclude_columns=[], conditions={}):
|
|
31
31
|
|
|
32
|
-
object = self.db.get_filtered_list_of_objects(self.object_type, filter, include_columns, exclude_columns, as_dict=True)
|
|
32
|
+
object = self.db.get_filtered_list_of_objects(self.object_type, filter, include_columns, exclude_columns, conditions, as_dict=True)
|
|
33
33
|
return object
|
|
34
34
|
|
|
35
35
|
def create_object(self, object):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: crud-mysql
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: crud defiend by json
|
|
5
5
|
Home-page: https://github.com/Ms-Shoshany/crud-mysql
|
|
6
6
|
Author: hanna
|
|
@@ -29,7 +29,7 @@ main.py / app.py - example
|
|
|
29
29
|
|
|
30
30
|
from flask import Flask
|
|
31
31
|
from flask_cors import CORS
|
|
32
|
-
from
|
|
32
|
+
from crud_mysql import crud
|
|
33
33
|
|
|
34
34
|
app = Flask(__name__)
|
|
35
35
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .endpoints import crud
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|