Closed The-Daishogun closed 1 year ago
Hi @The-Daishogun, First of all, thanks for helping to improve Marzban.
This feature seems cool, feel free to make a PR.
Just before implementing, could you pls tell us more about how you gonna add this feature? (Which APIs are going to be changed) and how is it going to be implemented on the UI?
I would appreciate it if you use the Feature request template for future requests.
sorry for not using the Feature request template, i'll use it in the feature requests.
I'm thinking of adding two fields to the user model, data_limit_reset_strategy
which is a choice field and last_data_limit_reset_at
which is a dateTime field. and handle the actual reseting in a daily run cronjob.
in terms of ui, adding a dropdown after the data limit input field with different strategies would do the job.
though this means add_user, edit_user views must change.
Hi, thank you for the amazing work you're doing 🙌🏼
how do you feel about adding an option to make user bandwith limit rest weekly or monthly or even yearly?
i can get started on the pull request if you feel this would be a good adition