mirror of
https://github.com/not-lucky/GeminiKeyManagement.git
synced 2025-12-06 08:44:01 +05:30
fixed email retrival and added restriction to api
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -9,4 +9,5 @@ __pycache__/
|
|||||||
credentials/
|
credentials/
|
||||||
credentials.json
|
credentials.json
|
||||||
*.key
|
*.key
|
||||||
emails.txt
|
emails.txt
|
||||||
|
*.keys.txt
|
||||||
2
main.py
2
main.py
@@ -24,7 +24,7 @@ def load_emails_from_file(filename):
|
|||||||
print("Please create it and add one email address per line.")
|
print("Please create it and add one email address per line.")
|
||||||
return []
|
return []
|
||||||
with open(filename, "r") as f:
|
with open(filename, "r") as f:
|
||||||
return [line.strip() for line in f if line.strip()]
|
return [line.strip() for line in f if line.strip() and not line.startswith("#")]
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main function to orchestrate API key creation."""
|
"""Main function to orchestrate API key creation."""
|
||||||
|
|||||||
Reference in New Issue
Block a user