We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50bddd8 commit 2d515a8Copy full SHA for 2d515a8
dvuploader/checksum.py
@@ -5,31 +5,6 @@
5
from pydantic import BaseModel, Field
6
7
8
-class FeedbackCounter:
9
- """Object to provide a feedback callback keeping track of total calls.
10
-
11
- Attributes:
12
- counter (int): The total number of calls.
13
- """
14
15
- def __init__(self):
16
- self.counter = 0
17
18
- def feedback(self, r, **kwargs):
19
- """Provides a feedback callback keeping track of total calls.
20
21
- Args:
22
- r (request): The request object.
23
- **kwargs: Additional keyword arguments.
24
25
- Returns:
26
- request: The request object.
27
28
- self.counter += 1
29
- print("{0} uploaded, {1} total.".format(r.url, self.counter))
30
- return r
31
32
33
class ChecksumTypes(Enum):
34
"""Enum class representing different types of checksums."""
35
0 commit comments