Skip to content

Commit

Permalink
fi: fix-some-naming-issues (#60)
Browse files Browse the repository at this point in the history
* fix naming issues with type variables

* switch f-strings without vars to normal strings
  • Loading branch information
gdmhrogla authored Nov 14, 2024
1 parent b991daf commit c81c2bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion datenmanagement/models/models_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -3168,7 +3168,7 @@ def __str__(self):
def save(self, force_insert=False, force_update=False, using=None, update_fields=None, **kwargs):
if not self.vcp_task_id:
# create Task
print(f'===== CREATE TASK =====')
print('===== CREATE TASK =====')
task = Task(name=self.bezeichnung, description=self.beschreibung)
self.vcp_task_id = task.get_id()
self.vcp_dataset_bucket_id = task.get_dataset()['dataBucketId']
Expand Down
6 changes: 3 additions & 3 deletions toolbox/vcpub/DataBucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ def __get_bucket__(self):
else:
print(f'Respone ok?: {ok}')

def create_object(self, key: str, type: str = 'file'):
def create_object(self, key: str, object_type: str = 'file'):
"""
create an empty bucket object
:param key:
:param type:
:param object_type:
:return:
"""
data = {
'key': key,
'type': type
'type': object_type
}
self.__api.post(
endpoint=f'/project/{self.__project_id}/data_bucket/{self._id}',
Expand Down
2 changes: 1 addition & 1 deletion toolbox/vcpub/DataSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __get_source__(self):
self.description = source['description']
self.typeProperties = source['typeProperties']
self.sourceProperties = source['sourceProperties']
self.type = type
self.type = source['type']

def link(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion toolbox/vcpub/vcpub.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __login__(self) -> BearerAuth:
self.connected = True
else:
self.connected = False
self.logger.error(f'VCPub Login failed.')
self.logger.error('VCPub Login failed.')
return BearerAuth(bearer)

def __logout__(self) -> None:
Expand Down

0 comments on commit c81c2bb

Please sign in to comment.