We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08dcecd commit 268169dCopy full SHA for 268169d
ack_backend/src/utils_for_ack_lambda.py
@@ -2,10 +2,11 @@
2
3
from clients import s3_client
4
5
+
6
def get_row_count(bucket_name: str, file_key: str) -> int:
7
"""
8
Looks in the given bucket and returns the count of the number of lines in the given file.
9
NOTE: Blank lines are not included in the count.
10
11
response = s3_client.get_object(Bucket=bucket_name, Key=file_key)
- return sum(1 for line in response["Body"].iter_lines() if line.strip())
12
+ return sum(1 for line in response["Body"].iter_lines() if line.strip())
0 commit comments