Skip to content

Commit 83ee651

Browse files
MaxNumeriquegithub-actions[bot]
authored andcommitted
Apply prepare changes
1 parent f2e07fc commit 83ee651

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/opengeodeweb_back/data.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
import uuid
44
from typing import List, Type
55

6-
DatabaseModel : Type = database.Model
6+
DatabaseModel: Type = database.Model
7+
78

89
class Data(database.Model):
910
__tablename__ = "datas"
1011

1112
id = database.Column(
12-
String,
13-
primary_key=True,
14-
default=lambda: str(uuid.uuid4()).replace("-", "")
13+
String, primary_key=True, default=lambda: str(uuid.uuid4()).replace("-", "")
1514
)
1615
name = database.Column(String, nullable=False)
1716
native_file_name = database.Column(String, nullable=False)
@@ -23,10 +22,7 @@ class Data(database.Model):
2322

2423
@staticmethod
2524
def create(
26-
name: str,
27-
geode_object: str,
28-
input_file: str,
29-
additional_files: List[str]
25+
name: str, geode_object: str, input_file: str, additional_files: List[str]
3026
) -> "Data":
3127
if input_file is None:
3228
input_file = []

0 commit comments

Comments
 (0)