Commit Graph
20 Commits
Author SHA1 Message Date
Callum Leslie 555754ed05 Merge pull request #241 from elebumm/default-env-values
Add default values for environment variables
2022-06-04 14:38:28 +01:00
Callum Leslie 37f22b8b01 Ignore r/ in environment subreddit names 2022-06-04 02:00:19 +01:00
Callum Leslie cd5924562f Ignore r/ in subreddit names 2022-06-04 01:57:09 +01:00
Callum Leslie d39386178b Clean up imports 2022-06-04 01:53:34 +01:00
Callum Leslie 87d2112812 Move to casefold 2022-06-04 01:40:55 +01:00
Callum Leslie ccd0c60d87 Add default values for environment variables
This should reduce errors by some values not being set in the .env file - namely 2FA and Theme
2022-06-04 00:31:56 +01:00
Lewis Menelaws 49c1a89658 Fixed merge Issues 2022-06-02 14:57:53 -04:00
Lewis Menelaws 3742f11e87 Merge branch 'master' into master 2022-06-02 14:55:05 -04:00
Lewis Menelaws 45e3a11440 Refactored for easier merging and fixed dependencies. 2022-06-02 14:51:34 -04:00
Lewis Menelaws 9bb116793a Updated the .env.template to be a little easier to deal with. 2022-06-02 14:11:32 -04:00
reoccurcat 6742a53889 overhaul 2022-06-02 11:57:37 -05:00
Owen Gaspard 4f4616a49f Console outputs subreddit
Console will output the specified subreddit that you chose in .env if any
2022-06-01 11:47:50 -05:00
Owen GaspardandAziz Mejri 22b31bc71a Removed some files
Removed unnecessary pycache files and askreddit.py

Co-Authored-By: Aziz Mejri <zizou.aziz101@gmail.com>
2022-06-01 07:46:55 -05:00
owengaspard f12f0da76d Change AET var to string, NameError to ValueError
Python was giving errors with TRUE as a bool, so I changed it to a string. Giving an undefined name returned a different error than I put in the except, so I edited it and ran some tests which were successful. I will work on implementing something to detect if the subreddit exists and if it includes anything (e.g. special characters) which cannot be in subreddit names.
2022-05-31 16:21:43 -05:00
owengaspard b1e1d07c8b .env bool "ASK_EACH_TIME"
Define whether or not you want to be asked each time what subreddit to pull from. Also, I ticked the box on the README.
2022-05-31 16:13:32 -05:00
owengaspard 10ce9cac58 Polishing up
Fixed misspelling. Issue appears differently in provided screenshot.
2022-05-31 14:06:31 -05:00
owengaspard 8ec61b8fe2 Subreddit picker - .env
Alternatively, you can specify which subreddit to pull from in the .env file.
2022-05-31 13:40:44 -05:00
owengaspard 5f9bbfc22c Fix misspellings 2022-05-31 13:34:11 -05:00
owengaspard b2bcb28f8f Subreddit chooser (TEST)
Allows user to choose a subreddit to pull from by taking user input. I will work on adding it to the .env file.
2022-05-31 13:30:04 -05:00
Lewis Menelaws ce14eff286 Initial commit 2022-05-26 11:46:56 -04:00