Skip to content

Commit

Permalink
Removed unused class
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Sep 22, 2023
1 parent 50bddd8 commit 2d515a8
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions dvuploader/checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,6 @@
from pydantic import BaseModel, Field


class FeedbackCounter:
"""Object to provide a feedback callback keeping track of total calls.
Attributes:
counter (int): The total number of calls.
"""

def __init__(self):
self.counter = 0

def feedback(self, r, **kwargs):
"""Provides a feedback callback keeping track of total calls.
Args:
r (request): The request object.
**kwargs: Additional keyword arguments.
Returns:
request: The request object.
"""
self.counter += 1
print("{0} uploaded, {1} total.".format(r.url, self.counter))
return r


class ChecksumTypes(Enum):
"""Enum class representing different types of checksums."""

Expand Down

0 comments on commit 2d515a8

Please sign in to comment.