Skip to content

Commit

Permalink
supposedly fixed bug in #2
Browse files Browse the repository at this point in the history
  • Loading branch information
treeben77 committed Nov 11, 2022
1 parent 715e45a commit 53e94fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rblxopencloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
from .exceptions import *

# don't forget to update version here and in setup.py!
VERSION = "0.4.1"
VERSION = "0.4.2"
VERSION_INFO = "final"
11 changes: 6 additions & 5 deletions rblxopencloud/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
class EntryInfo():
def __init__(self, version, created, updated, users, metadata) -> None:
self.version = version
self.created = datetime.datetime.fromisoformat(created[0:26])
self.updated = datetime.datetime.fromisoformat(updated[0:26])
self.created = datetime.datetime.fromisoformat((created.split("Z")[0]+"0"*6)[0:26])
self.updated = datetime.datetime.fromisoformat((updated.split("Z")[0]+"0"*6)[0:26])
self.users = users
self.metadata = metadata

Expand All @@ -26,8 +26,9 @@ def __init__(self, version, deleted, content_length, created, key_created, datas
self.version = version
self.deleted = deleted
self.content_length = content_length
self.created = datetime.datetime.fromisoformat(created[0:26])
self.key_created = datetime.datetime.fromisoformat(key_created[0:26])
self.created = datetime.datetime.fromisoformat((created.split("Z")[0]+"0"*6)[0:26])
print(key_created)
self.key_created = datetime.datetime.fromisoformat((key_created.split("Z")[0]+"0"*6)[0:26])
self.__datastore = datastore
self.__key = key
self.__scope = scope
Expand Down Expand Up @@ -66,7 +67,7 @@ def __init__(self, name, universe, api_key, created, scope):
self.__api_key = api_key
self.scope = scope
self.universe = universe
if created: self.created = datetime.datetime.fromisoformat(created[0:26])
if created: self.created = datetime.datetime.fromisoformat((created.split("Z")[0]+"0"*6)[0:26])
else: self.created = None

def __repr__(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
name='rblx-open-cloud',
description='API wrapper for Roblox Open Cloud',
version="0.4.1", # don't forget to update version here and in __init__.py!
version="0.4.2", # don't forget to update version here and in __init__.py!
long_description=long_description,
long_description_content_type="text/markdown",
license='MIT',
Expand Down

0 comments on commit 53e94fb

Please sign in to comment.