We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If this is relevant for someone, I am attaching here my solution to the error related to auto_delete_in_days.
In marzpy/api/user.py you need to change the User class to the following:
class User: def __init__( self, username: str, proxies: dict, inbounds: dict, data_limit: float, data_limit_reset_strategy: str = "no_reset", status="", expire: float = 0, used_traffic=0, lifetime_used_traffic=0, created_at="", links=[], subscription_url="", excluded_inbounds={}, note="", on_hold_timeout=0, on_hold_expire_duration=0, sub_updated_at=0, online_at=0, sub_last_user_agent: str = "", auto_delete_in_days: int = 0, **kwargs ): self.username = username self.proxies = proxies self.inbounds = inbounds self.expire = expire self.data_limit = data_limit self.data_limit_reset_strategy = data_limit_reset_strategy self.status = status self.used_traffic = used_traffic self.lifetime_used_traffic = lifetime_used_traffic self.created_at = created_at self.links = links self.subscription_url = subscription_url self.excluded_inbounds = excluded_inbounds self.note = note self.on_hold_timeout = on_hold_timeout self.on_hold_expire_duration = on_hold_expire_duration self.sub_last_user_agent = sub_last_user_agent self.online_at = online_at self.sub_updated_at = sub_updated_at self.auto_delete_in_days = auto_delete_in_days for key, value in kwargs.items(): setattr(self, key, value) def __str__(self): """Returns a readable string representation of the User object""" attrs = [ f"username='{self.username}'", f"status='{self.status}'", f"data_limit={self.data_limit}", f"expire={self.expire}", f"used_traffic={self.used_traffic}", f"lifetime_used_traffic={self.lifetime_used_traffic}", f"created_at='{self.created_at}'", f"subscription_url='{self.subscription_url}'", f"note='{self.note}'", f"on_hold_timeout={self.on_hold_timeout}", f"on_hold_expire_duration={self.on_hold_expire_duration}", f"sub_updated_at={self.sub_updated_at}", f"online_at={self.online_at}", f"auto_delete_in_days={self.auto_delete_in_days}" ] return f"User({', '.join(attrs)})" def __repr__(self): """Returns the same as __str__""" return self.__str__()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If this is relevant for someone, I am attaching here my solution to the error related to auto_delete_in_days.
In marzpy/api/user.py you need to change the User class to the following:
The text was updated successfully, but these errors were encountered: