Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
design_pattern
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ajil.k
design_pattern
Commits
da5a4ff9
Commit
da5a4ff9
authored
Feb 20, 2023
by
ajil.k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
b43e4421
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
scripts/core/handlers/api_functions.py
scripts/core/handlers/api_functions.py
+0
-1
scripts/services/creational_design_structure.py
scripts/services/creational_design_structure.py
+0
-1
No files found.
scripts/core/handlers/api_functions.py
View file @
da5a4ff9
...
...
@@ -11,7 +11,6 @@ def create_new_character(prototypes):
prototype
=
CharacterPrototype
()
base_character_name
=
"normal_character"
prototype
.
create_character
(
base_character_name
,
base_character
)
print
(
prototypes
)
# Creates a new character by cloning the base character and updating its attributes
new_character
=
prototype
.
clone
(
base_character_name
,
health
=
prototypes
.
health
,
...
...
scripts/services/creational_design_structure.py
View file @
da5a4ff9
...
...
@@ -19,7 +19,6 @@ async def root():
@
prototype
.
post
(
EndPoints
.
create_characters
)
def
create_characters
(
prototypes
:
PrototypeCharacter
):
try
:
print
(
prototypes
)
base_character
,
new_character
=
create_new_character
(
prototypes
)
return
{
"Base Character"
:
base_character
,
"New Character"
:
new_character
}
except
Exception
as
e
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment