Skip to content

Commit

Permalink
search loops with regex
Browse files Browse the repository at this point in the history
  • Loading branch information
luutuankiet committed Feb 21, 2024
1 parent 71c2c42 commit 6b0a68d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/charts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pandas as pd
from helper.source_env import dbt_project_dir
import datetime
import re

motherduck_token = os.environ.get("motherduck_token")
con = duckdb.connect(f'md:ticktick_gtd?motherduck_token={motherduck_token}')
Expand Down Expand Up @@ -101,7 +102,7 @@ def get_table(query):
lines = loops.split('\n')
counter = 0
for line in lines:
if line != '':
if re.search('[a-z0-9]',line.lower()):
counter+=1

compare_clarify = int(tags_count['cnt_clarifyme'].loc[0])
Expand Down

0 comments on commit 6b0a68d

Please sign in to comment.