-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1510c51
commit 2b538b9
Showing
8 changed files
with
149 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
from ofscraper.classes.table.inputs.filterinput import FilterInput | ||
from ofscraper.classes.table.status import status | ||
|
||
|
||
class IntegerInput(FilterInput): | ||
CAST = int | ||
def __init__(self,*args, **kwargs): | ||
super().__init__(*args,type="integer",**kwargs) | ||
|
||
def on_input_changed(self): | ||
status[self.key] = int(self.value) if self.value else "" | ||
|
||
def on_input_submitted(self): | ||
status[self.key] = int(self.value) if self.value else "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
from ofscraper.classes.table.inputs.filterinput import FilterInput | ||
from ofscraper.classes.table.status import status | ||
|
||
|
||
|
||
class StrInput(FilterInput): | ||
CAST = str | ||
def __init__(self,*args,**kwargs): | ||
super().__init__(*args,type="text",**kwargs) | ||
def on_input_changed(self): | ||
status[self.key] = self.value | ||
|
||
def on_input_submitted(self): | ||
status[self.key] = self.value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.