Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Dec 7, 2023
1 parent 1a31dfc commit e0d48a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions snakemake_storage_plugin_gcs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import google.cloud.exceptions
from google.cloud import storage
from google.api_core import retry
from google.api_core.client_options import ClientOptions
from google_crc32c import Checksum


Expand Down Expand Up @@ -174,6 +173,7 @@ class StorageProvider(StorageProviderBase):
def __post_init__(self):
# TODO debug, remove
from google.auth.credentials import AnonymousCredentials

self.client = storage.Client(credentials=AnonymousCredentials())

@classmethod
Expand Down Expand Up @@ -339,9 +339,7 @@ def mtime(self) -> float:
Return the modification time
"""
if self.is_directory():
return max(
blob.updated.timestamp() for blob in self.directory_entries()
)
return max(blob.updated.timestamp() for blob in self.directory_entries())
else:
self.update_blob()
return self.blob.updated.timestamp()
Expand Down

0 comments on commit e0d48a9

Please sign in to comment.