mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Merge pull request #879 from gdeeble/v4.3-dev-fix-empty-expiredate-peersharelink
fix: set date when null expiredate for peersharelink
This commit is contained in:
@@ -9,6 +9,8 @@ class PeerShareLink:
|
|||||||
self.Configuration = Configuration
|
self.Configuration = Configuration
|
||||||
self.SharedDate = SharedDate
|
self.SharedDate = SharedDate
|
||||||
self.ExpireDate = ExpireDate
|
self.ExpireDate = ExpireDate
|
||||||
|
if not self.ExpireDate:
|
||||||
|
self.ExpireDate = datetime.strptime("2199-12-31","%Y-%m-%d")
|
||||||
|
|
||||||
def toJson(self):
|
def toJson(self):
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user