This commit is contained in:
Михаил Капелько
2024-01-08 17:45:45 +03:00
parent aa203c2337
commit e8f330ad2a
12 changed files with 47 additions and 12 deletions

View File

@@ -1,10 +1,17 @@
from generation.isPipeMany import *
from generation.isPipeRecent import *
def fieldFormat(fmtPlain, fmtRecent, name, structure):
def fieldFormat(fmtMany, fmtPlain, fmtRecent, name, structure):
fmt = fmtPlain
if (
isPipeRecent(name, structure.core) or
isPipeRecent(name, structure.service)
):
fmt = fmtRecent
if (
isPipeMany(name, structure.core) or
isPipeMany(name, structure.service)
):
fmt = fmtMany
return fmt