Skip to content

Commit 17e7222

Browse files
One more AI feedback address
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent b178f8e commit 17e7222

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cla-backend/cla/models/github_models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,12 +1685,14 @@ def update_cache_after_signature(user, project):
16851685

16861686
# Update project-specific cache with authorized=True
16871687
# Format: (user, check_aff: True/False, authorized, affiliated)
1688-
github_user_cache.set_with_ttl(project_cache_key, (user, False, True, affiliated), PROJECT_CACHE_TTL)
1688+
# LG: to write with non-aff mode
1689+
# github_user_cache.set_with_ttl(project_cache_key, (user, False, True, affiliated), PROJECT_CACHE_TTL)
16891690
github_user_cache.set_with_ttl(project_cache_key, (user, True, True, affiliated), PROJECT_CACHE_TTL)
16901691

16911692
# Update general cache
16921693
# Format: (user, check_aff: True/False)
1693-
github_user_cache.set(cache_key, (user, False))
1694+
# LG: to write with non-aff mode
1695+
# github_user_cache.set(cache_key, (user, False))
16941696
github_user_cache.set(cache_key, (user, True))
16951697

16961698
cla.log.info(f"{fn} - updated github_user_cache for user {github_username} (ID: {github_id}, emails: {all_emails}) "

0 commit comments

Comments
 (0)