Whoops removed some crucial functionality... :')
This commit is contained in:
parent
5e1be11ec2
commit
8be76f224f
@ -23,7 +23,7 @@ public partial class EntityLinker
|
||||
|
||||
public string ClassName => _className;
|
||||
public string Path => _path;
|
||||
public string FieldName => _className.ToLower().Underscore();
|
||||
public string FieldName => _className.Underscore().ToLower();
|
||||
|
||||
public string TableName => GetOriginalText(_tableCtx)
|
||||
.Replace("__tablename__", string.Empty)
|
||||
|
@ -40,6 +40,12 @@ public sealed class Api : IFeature
|
||||
return;
|
||||
}
|
||||
|
||||
await Bash.ExecuteAsync(
|
||||
"source .venv/bin/activate",
|
||||
"python3 -m pip install fastapi uvicorn[standard]",
|
||||
"python3 -m pip freeze > requirements.txt"
|
||||
);
|
||||
|
||||
await context.CreateFile("api/routers/hello.py", HelloRouter);
|
||||
|
||||
var main = await context.ReadFile("main.py");
|
||||
|
Loading…
Reference in New Issue
Block a user