Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/spaceandtime/sxtkeymanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def sign_message(self, message:str, encoding_out:SXTKeyEncodings = SXTKeyEncodin

"""
if type(message)!=str:
raise ValueError(f'paramter: "message" must be a string type, not {str(type(message))}')
raise ValueError(f'parameter: "message" must be a string type, not {str(type(message))}')
try:
if not encoding_out: encoding_out = self.encoding
signing_object = nacl.signing.SigningKey(bytes(self.__pv))
Expand Down
8 changes: 4 additions & 4 deletions src/spaceandtime/sxtresource.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def exists(self) -> bool:
self.logger.debug(f'testing whether {self.resource_name} exists: {str(does_exist)}')
return does_exist
else:
self.logger.warning(f'There was a problem deteriming whether resource exists: {self.resource_name} (returning None)\n{resources}')
self.logger.warning(f'There was a problem determining whether resource exists: {self.resource_name} (returning None)\n{resources}')
return None


Expand Down Expand Up @@ -241,7 +241,7 @@ def add_biscuit_object(self, *biscuit_objects:SXTBiscuit) -> SXTBiscuit:
"""Adds one-or-more SXTBiscuit objects to the resource.

Args:
bsicuit_objects (SXTBiscuit): Biscuit objects to add to resource
biscuit_objects (SXTBiscuit): Biscuit objects to add to resource

Returns:
list: objects added
Expand Down Expand Up @@ -771,7 +771,7 @@ def require_primary_key(self, value:bool):


def get_column_names(self) -> dict:
"""Returns a dictonary of column_name : data_type as defined in the create_ddl.
"""Returns a dictionary of column_name : data_type as defined in the create_ddl.

Useful when an iterable list of columns (and types) is required, such as building
INSERT statements or view SELECT lists. Order should be preserved, although as a dict
Expand Down Expand Up @@ -916,7 +916,7 @@ def with_list_of_dicts(self, pk_column:str, list_of_dicts:list = [{}], upsert:bo
"""--------------------
Turns a list of dictionaries into multiple UPDATE statements and submits for insertion to this resource on the Space and Time Network.

Each row (dictionary) in the list will be coverted to an update statement individually, thus can contain a different
Each row (dictionary) in the list will be converted to an update statement individually, thus can contain a different
assortment of columns and data to update. Rows updated this way are always identified by the unique Primary Key,
so the pk_column must be specified, must match the PK column name in the table definition, and must appear in every
row in the list_of_dicts. To perform arbitrary UPDATES against multiple rows, us the "with_sqltext()" function.
Expand Down